home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / sharutil.2 / sharutil / sharutils-4.2 / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-12-02  |  3.5 KB  |  120 lines

  1. # Main makefile for GNU Shar utility package.
  2. # Copyright (C) 1995 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22. @SET_MAKE@
  23.  
  24. srcdir = @srcdir@
  25. VPATH = @srcdir@
  26.  
  27. DISTFILES = COPYING AUTHORS BACKLOG ChangeLog ChangeLog.OLD INSTALL \
  28. Makefile.in ABOUT-NLS NEWS README README.OLD THANKS TODO \
  29. acconfig.h aclocal.m4 config.h.in configure configure.in install-sh \
  30. mkinstalldirs stamp-h.in @DIST_ALPHA@
  31.  
  32. SUBDIRS = doc lib @POSUB@ @INTLSUB@ src checks contrib
  33.  
  34. all: all-recursive
  35.  
  36. all-recursive install install-exec install-data uninstall TAGS ID \
  37. mostlyclean-recursive clean-recursive distclean-recursive \
  38. maintainer-clean-recursive check: config.h Makefile
  39.     for subdir in $(SUBDIRS); do \
  40.       target=`echo $@|sed 's/-recursive//'`; \
  41.       echo making $$target in $$subdir; \
  42.       (cd $$subdir && $(MAKE) $$target) \
  43.         || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
  44.     done && test -z "$$fail"
  45.  
  46. install-man: config.h Makefile
  47.     echo making $@ in doc
  48.     cd doc && $(MAKE) $@
  49.  
  50. distdir = $(PACKAGE)-$(VERSION)
  51. dist: Makefile
  52.     rm -fr $(distdir)
  53.     mkdir $(distdir)
  54.     for file in $(DISTFILES); do \
  55.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  56.         || cp -p $(srcdir)/$$file $(distdir); \
  57.     done
  58.     for subdir in $(SUBDIRS); do \
  59.       mkdir $(distdir)/$$subdir || exit 1; \
  60.       (cd $$subdir && $(MAKE) $@) || exit 1; \
  61.     done
  62.     tar zchovf $(distdir).tar.gz $(distdir)
  63.     rm -fr $(distdir)
  64.  
  65. tags: TAGS
  66. id: ID
  67.  
  68. mostlyclean: mostlyclean-recursive mostlyclean-local
  69.  
  70. clean: clean-recursive clean-local
  71.  
  72. distclean: distclean-recursive distclean-local
  73.     rm -f config.status
  74.  
  75. maintainer-clean: maintainer-clean-recursive maintainer-clean-local
  76.     @echo "This command is intended for maintainers to use;"
  77.     @echo "it deletes files that may require special tools to rebuild."
  78.     rm -f config.status
  79.  
  80. mostlyclean-local:
  81.  
  82. clean-local: mostlyclean-local
  83.  
  84. distclean-local: clean-local
  85.     rm -f Makefile config.cache config.h config.log stamp-h tupdate.perl
  86.  
  87. maintainer-clean-local: distclean-local
  88.  
  89. check:
  90.  
  91. dvi info:
  92.     cd doc && $(MAKE) $@
  93.  
  94. # For understanding the following see the autoconf manual.
  95. configure: configure.in aclocal.m4
  96.     cd $(srcdir) && autoconf
  97.  
  98. # autoheader might not change config.h.in
  99. config.h.in: stamp-h.in
  100. stamp-h.in: configure.in acconfig.h
  101.     cd $(srcdir) && autoheader
  102.     rm -f $(srcdir)/stamp-h.in && echo timestamp > $(srcdir)/stamp-h.in
  103.  
  104. #config.status might not change config.h
  105. # Don't rerun config.status if we just configured.
  106. config.h: stamp-h
  107. stamp-h: config.h.in config.status
  108.     test ! -f stamp-h || ./config.status
  109.     rm -f stamp-h && echo timestamp > stamp-h
  110.  
  111. Makefile: Makefile.in config.status
  112.     ./config.status
  113.  
  114. config.status: configure config.h.in
  115.     ./config.status --recheck
  116.  
  117. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  118. # Otherwise a system limit (for SysV at least) may be exceeded.
  119. .NOEXPORT:
  120.